package com.yunfeng.aolin.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.yunfeng.aolin.entity.Employee;
import com.yunfeng.common.util.Page;

public interface EmployeeService {
	Employee get(Long id);

	void saveOrUpdate(Employee employee);

	void delete(Long id);

	List<Employee> findAll();

	List<Employee> findAll(Page page);

	List<Employee> findByXingming(Page page, String xingming);

	List<Employee> findByExample(Specification<Employee> specification,
			Page page);
}
